package com.bingo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.bingo.common.R;
import com.bingo.entity.Sale;
import com.bingo.entity.dto.HappenedInPeriod;
import com.bingo.entity.dto.Transfer;
import com.bingo.entity.dto.everyDayForm.EveryDaySale;
import com.bingo.entity.dto.resp.RespSiteSale;
import com.bingo.entity.dto.resp.SaleRecord;

import java.sql.Date;
import java.util.List;

public interface SaleService extends IService<Sale> {
    R add(String poolNo, Integer saleType, Integer quantity, Double weight, Date date, String userId);

    //汇总销售包括普通和A鳗
    HappenedInPeriod summarySale(String poolNo, Date startDate, Date endDate);

    //查询时间段内的销售记录
    List<EveryDaySale> selectEveryDaySale(List<String> poolNos, Date startDate, Date endDate, Integer saleType);

    //查询销售记录
    List<SaleRecord> selectSaleRecord(List<String> poolNos, Date startDate, Date endDate, Integer saleType, String userId);

    //查询场的销售记录
    List<RespSiteSale> selectSiteSale(List<String> siteNos, Date startDate, Date endDate,Integer saleType);
}
